const express = require('express');
const LessonController = require('../controllers/LessonController');

const router = express.Router();

// 课时相关路由
router.get('/courses/:course_id/lessons', LessonController.getCourseLessons);
router.get('/courses/:course_id/lessons/:lesson_id', LessonController.getLessonDetail);
router.post('/courses/:course_id/lessons/:lesson_id/progress', LessonController.updateWatchProgress);
router.get('/students/:user_id/watch-stats', LessonController.getStudentWatchStats);

module.exports = router; 